<?php
class ConfigWidget extends CWidget
{
	var $data;
	public function init()
	{
		// this method is called by CController::beginWidget()
		$this->data["controller_id"] = $this->getController()->getId();
		$action_id = $this->getController()->getAction()->getId();;
		$this->data["tab_name"] = str_replace("edit_","",$action_id);
	}
	
	public function run()
	{
		$this->render("config", $this->data);
		
	}
}